package com.shuiyun.log.dao;

import com.shuiyun.log.po.LogPO;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @program: LogDemo
 * @description: 日志DAO类
 * @author: gujun
 * @create: 2019-10-10 15:05
 **/
public interface LogDAO extends MongoRepository<LogPO,String> {
    /** 
    * @Description: 按模块和主键查询最新一条数据
    * @Param:  
    * @return:  
    * @Author: gujun 
    * @Date: 2019/10/10 
    */ 
    public LogPO findFirstByModuleAndDataIdOrderByOptTimeDesc(Integer model,String dataId);
}
